package com.gufe.exception;



/**
 * 登录验证码无效异常
 */
public class LoginInvalidCodeException extends RuntimeException {
    private int errorCode;

    public LoginInvalidCodeException(String message) {
        super(message);
        this.errorCode = 400; // 默认 HTTP 400 错误码
    }

    public LoginInvalidCodeException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
